package com.zzy.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zzy.cms.base.entity.StringIdExtendEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 区划表
 * </p>
 *
 * @author wey
 * @since 2024-01-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("topsdp_division")
@ApiModel(value="TopsdpDivision对象", description="区划表")
public class Division extends StringIdExtendEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "区划编码")
    @TableField("div_code")
    private String divCode;

    @ApiModelProperty(value = "区划名称")
    @TableField("div_name")
    private String divName;

    @ApiModelProperty(value = "区划级别 0-国家；1-省；2-市；3-县；4-乡；5-村")
    @TableField("level")
    private Integer level;

    @ApiModelProperty(value = "父级区划编码")
    @TableField("parent_div_code")
    private String parentDivCode;

    @ApiModelProperty(value = "排序")
    @TableField("display_order")
    private Integer displayOrder;


}
